from django.urls import path, include
from rest_framework.routers import DefaultRouter

from category import views
from category.views import CategoryViewSet

# 创建路由器并注册视图集
router = DefaultRouter()
router.register(r'categories', CategoryViewSet, basename='category')

urlpatterns = [
    path('', include(router.urls)),
]